package com.lbx.util;



/**
 * @author lbx create by 2021/6/18 8:31
 * @apiNote CommonRes
 */
public class CommonRes<T> {
    Integer code;
    String message;
    T data;
    public CommonRes() {
    }
    
    public CommonRes(Integer code, String message, T data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }
    
    public Integer getCode() {
        return code;
    }
    
    public void setCode(Integer code) {
        this.code = code;
    }
    
    public String getMessage() {
        return message;
    }
    
    public void setMessage(String message) {
        this.message = message;
    }
    
    public T getData() {
        return data;
    }
    
    public void setData(T data) {
        this.data = data;
    }
    
    CommonRes<T> Res(Integer code, String msg, T data) {
        return new CommonRes<T>(code, msg, data);
    }
}
